﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;

public partial class CardCenter_CardTransferFailed : System.Web.UI.Page
{
    public int totalError = 0;
    List<string> errorInfo = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            if (Session["errorList"] != null)
            {
                errorInfo = (List<string>)Session["errorList"];
                totalError = errorInfo.Count;
                Session.Remove("errorList");
                this.showtransInfo(errorInfo);
                //DataTable resultTab = this.showtransInfo(errorInfo);
                //this.DL_Info.DataSource = resultTab.DefaultView;
                //this.DL_Info.DataBind();
            }
        }
    }
    

    //在页面显示转账信息
    public void showtransInfo(List<string> list) 
    {
        ListItem item = null;
        if(list != null)
        {
            foreach(string str in list)
            {
                item = new ListItem();
                item.Text = str;
                this.BL_TransInfo.Items.Add(item);
            }
        }
    }


    //转账成功显示转账信息
    //public void showInfo()
    //{
    //    StringBuilder buider = new StringBuilder();
    //    foreach (string str in errorInfo)
    //    {
    //        buider.Append(str + "<br/>");
    //    }
    //    this.LblSuccess.Text = buider.ToString();
    //}


}
